package com.tiancheng.trade.settlement.mapper.settlement;

import com.tiancheng.trade.settlement.mapper.TYBaseMapper;
import com.tiancheng.trade.settlement.model.settlement.StatementProduct;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StatementProductMapper extends TYBaseMapper<StatementProduct> {

    /**
     * 批量增加对账函产品信息
     *
     * @param list
     * @return
     */
    int batchSaveStatementProduct(@Param("list") List<StatementProduct> list);

    /**
     * 删除对账函下的产品信息
     *
     * @param statementCode
     * @return
     */
    int deleteProductByStatementCode(@Param("list") List<String> statementCode);

}
